package com.lgmshare.k3.model;


/**
 * 2012-4-19
 *
 * @author wanghaoyue 地址
 */
public class Address extends BaseBean {


    private static final long serialVersionUID = 3632080833700971230L;

    public enum CoordinateType {
        BAIDU_09,
        GCJ_02,
        NULL
    }

    private CoordinateType coordinateType;//经纬度所属坐标系类别
    private String addressId;
    private String name = "";
    private String mobile = "";

    private String province = "";
    private String city = "";
    private String county = "";
    private String address = "";
    private String additionaladdress;
    private double latitude;
    private double longitude;
    private int locationType;
    private String locationTime;

    public Address() {

    }

    public Address(String name, String mobile) {
        this.name = name;
        this.mobile = mobile;
    }

    public Address(CoordinateType coordinateType, String addressId, String name, String mobile, String province, String city, String county, String address, String additionaladdress, double latitude, double longitude, int locationType, String locationTime) {
        this.coordinateType = coordinateType;
        this.addressId = addressId;
        this.name = name;
        this.mobile = mobile;
        this.province = province;
        this.city = city;
        this.county = county;
        this.address = address;
        this.additionaladdress = additionaladdress;
        this.latitude = latitude;
        this.longitude = longitude;
        this.locationType = locationType;
        this.locationTime = locationTime;
    }

    // 浅拷贝
    public Address(Address add) {
        this.coordinateType = add.coordinateType;
        this.addressId = add.addressId;
        this.name = add.name;
        this.mobile = add.mobile;
        this.province = add.province;
        this.city = add.city;
        this.county = add.county;
        this.address = add.address;
        this.additionaladdress = add.additionaladdress;
        this.latitude = add.latitude;
        this.longitude = add.longitude;
        this.locationType = add.locationType;
        this.locationTime = add.locationTime;
    }

    // 浅拷贝
    public void clone(Address add) {
        this.coordinateType = add.coordinateType;
        this.addressId = add.addressId;
        this.name = add.name;
        this.mobile = add.mobile;
        this.province = add.province;
        this.city = add.city;
        this.county = add.county;
        this.address = add.address;
        this.additionaladdress = add.additionaladdress;
        this.latitude = add.latitude;
        this.longitude = add.longitude;
        this.locationType = add.locationType;
        this.locationTime = add.locationTime;
    }

    public CoordinateType getCoordinateType() {
        return coordinateType;
    }

    public void setCoordinateType(CoordinateType coordinateType) {
        this.coordinateType = coordinateType;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAdditionaladdress() {
        return additionaladdress;
    }

    public void setAdditionaladdress(String additionaladdress) {
        this.additionaladdress = additionaladdress;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public int getLocationType() {
        return locationType;
    }

    public void setLocationType(int locationType) {
        this.locationType = locationType;
    }

    public String getLocationTime() {
        return locationTime;
    }

    public void setLocationTime(String locationTime) {
        this.locationTime = locationTime;
    }

    @Override
    public String toString() {
        return "Address{" +
                "coordinateType=" + coordinateType +
                ", addressId='" + addressId + '\'' +
                ", name='" + name + '\'' +
                ", mobile='" + mobile + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", county='" + county + '\'' +
                ", address='" + address + '\'' +
                ", additionaladdress='" + additionaladdress + '\'' +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", locationType=" + locationType +
                ", locationTime='" + locationTime + '\'' +
                '}';
    }

}
